package com.fr.http;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.cert.Certificate;

import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLPeerUnverifiedException;

/**
*作者：furong
*日期：2016年11月1日
*时间：下午4:16:15
*/
public class HttpsURLConnectionTest {
    public static void main(String[] args) throws MalformedURLException {
        HttpsURLConnection conn = new HttpsURLConnection(new URL("Https://www.baidu.com")) {

            @Override
            public void connect() throws IOException {
                // TODO Auto-generated method stub

            }

            @Override
            public boolean usingProxy() {
                // TODO Auto-generated method stub
                return false;
            }

            @Override
            public void disconnect() {
                // TODO Auto-generated method stub

            }

            @Override
            public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {
                // TODO Auto-generated method stub
                return null;
            }

            @Override
            public Certificate[] getLocalCertificates() {
                // TODO Auto-generated method stub
                return null;
            }

            @Override
            public String getCipherSuite() {
                // TODO Auto-generated method stub
                return null;
            }
        };
        // conn.
    }
}
